DX11 SET STENCIL WRITE MASK
Sets a stencil mask that is bitwise AND:ed together with the stencil value when writing to the depth/stencil buffer.
This allows you to ensure that only certain stencil bits are written by shader techniques using this depth stencil state.
Take note that the stencil value is an 8-bit value (a BYTE), thus the mask is as well.
DX11 SET STENCIL WRITE MASK depthStencilState, writeMask
depthStencilState
Dword
The depth stencil state to set the stencil write mask for.
writeMask
Byte
The stencil write mask to set for the given depth stencil state. This mask is bitwise AND:ed together with any value to be written to the stencil buffer.
This function does not return a value.
DEPTHSTENCILSTATE Functions Menu
DX11 Function Categories